package entity;

public class User {
    private int id;
    private String userName;
    private String password;
    private Integer dormBuildId;    // 对应t_dormuser表中的dormBuildId

    public User() {}

    public User(int id, String userName, String password) {
        this.id = id;
        this.userName = userName;
        this.password = password;
    }

    // Getter和Setter方法
    public int getId() { return id; }
    public void setId(int id) { this.id = id; }

    public String getUserName() { return userName; }
    public void setUserName(String userName) { this.userName = userName; }

    public String getPassword() { return password; }
    public void setPassword(String password) { this.password = password; }

    public Integer getDormBuildId() { return dormBuildId; }
    public void setDormBuildId(Integer dormBuildId) { this.dormBuildId = dormBuildId; }
}